import 'package:flutter/material.dart';
import 'package:flutter_html/flutter_html.dart';

class GoodsDetailHtml extends StatelessWidget {
  final String htmlString;

  GoodsDetailHtml(this.htmlString);

  @override
  Widget build(BuildContext context) {
    ///
    /// 使用ListView解决Html不能滑动问题
    ///
    return ListView(
      children: <Widget>[
        Html(
          data: htmlString,
        )
      ],
    );
  }
}
